|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.interactions.core.support.Widget
org.eclipse.vtp.framework.interactions.core.support.WidgetDocument
org.eclipse.vtp.framework.interactions.voice.vxml.VXMLDocument
public class VXMLDocument
Document type for VXML widgets.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.interactions.core.platforms.IDocument |
|---|
DEFAULT_CONTENT_TYPE |
| Constructor Summary | |
|---|---|
VXMLDocument()
Creates a new VXMLDocument object. |
|
VXMLDocument(java.lang.String version)
Creates a new VXMLDocument object. |
|
| Method Summary | |
|---|---|
void |
addDialog(Dialog dialog)
Adds a dialog to this document. |
void |
addEventHandler(EventHandler eventHandler)
Adds an event handler to this document. |
void |
addScript(Script script)
Adds a script block to this document. |
void |
addVariable(Variable variable)
Adds a variable to this document. |
void |
clearProperty(java.lang.String propertyName)
Clears the value of a property in this document. |
java.lang.String |
getApplicationURI()
Returns the application URI of this document or null if no
URI is specified. |
java.lang.String |
getDocumentType()
Returns a string representing the dialect of XML document this instance produces. |
java.lang.String[] |
getPropertyNames()
Returns the names of the properties of this document. |
java.lang.String |
getPropertyValue(java.lang.String propertyName)
Returns the value of the specified property or null if no
such property exists. |
java.lang.String |
getVersion()
Returns the version of VXML this document conforms to. |
void |
removeDialog(Dialog dialog)
Removes a dialog from this document. |
void |
removeEventHandler(EventHandler eventHandler)
Removes an event handler from this document. |
void |
removeScript(Script script)
Removes a script block from this document. |
void |
removeVariable(Variable variable)
Removes a variable from this document. |
void |
setApplicationURI(java.lang.String applicationURI)
Sets the application URI of this document. |
void |
setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
Sets the value of a property in this document. |
void |
setVersion(java.lang.String version)
Sets the version of VXML this document conforms to. |
protected void |
writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
Write the attribute members of this variable to the supplied set. |
protected void |
writeDialogs(org.xml.sax.ContentHandler outputHandler)
Write the dialogs of this document to the specified content handler. |
protected void |
writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
Write the event handlers of this document to the specified content handler. |
protected void |
writeProperties(org.xml.sax.ContentHandler outputHandler)
Writes the properties of this document to the specified content handler. |
protected void |
writeScripts(org.xml.sax.ContentHandler outputHandler)
Write the scripts of this document to the specified content handler. |
protected void |
writeVariables(org.xml.sax.ContentHandler outputHandler)
Write the variables of this document to the specified content handler. |
void |
writeWidget(org.xml.sax.ContentHandler outputHandler)
Writes the content of this widget to an XML content handler. |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.WidgetDocument |
|---|
getContentType, toXMLSource |
| Methods inherited from class org.eclipse.vtp.framework.interactions.core.support.Widget |
|---|
toString, writeAttribute, writeChildren, writeChildren, writeWidget, writeWidget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public VXMLDocument()
public VXMLDocument(java.lang.String version)
throws java.lang.NullPointerException
version - The version of VXML this document conforms to.
java.lang.NullPointerException - If the version string is null.| Method Detail |
|---|
public java.lang.String getVersion()
public java.lang.String getApplicationURI()
null if no
URI is specified.
null if no
URI is specified.public java.lang.String[] getPropertyNames()
public java.lang.String getPropertyValue(java.lang.String propertyName)
throws java.lang.NullPointerException
null if no
such property exists.
propertyName - The name of the property to find the value of.
null if no
such property exists.
java.lang.NullPointerException - If the supplied property name is
null.public void setVersion(java.lang.String version)
version - The version of VXML this document conforms to.
java.lang.NullPointerException - If the version string is null.public void setApplicationURI(java.lang.String applicationURI)
applicationURI - The application URI of this document.
public void setProperty(java.lang.String propertyName,
java.lang.String propertyValue)
throws java.lang.NullPointerException
propertyName - The name of the property to set.propertyValue - The value to set the property to.
java.lang.NullPointerException - If the supplied property name or value is
null.
public void clearProperty(java.lang.String propertyName)
throws java.lang.NullPointerException
propertyName - The name of the property to clear.
java.lang.NullPointerException - If the supplied property name is
null.
public void addVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to add.
java.lang.NullPointerException - If the supplied variable is null.
public void removeVariable(Variable variable)
throws java.lang.NullPointerException
variable - The variable to remove.
java.lang.NullPointerException - If the supplied variable is null.
public void addScript(Script script)
throws java.lang.NullPointerException
script - The script block to add.
java.lang.NullPointerException - If the supplied script block is
null.
public void removeScript(Script script)
throws java.lang.NullPointerException
script - The script block to remove.
java.lang.NullPointerException - If the supplied script block is
null.
public void addDialog(Dialog dialog)
throws java.lang.NullPointerException
dialog - The dialog to add.
java.lang.NullPointerException - If the supplied dialog is null.
public void removeDialog(Dialog dialog)
throws java.lang.NullPointerException
dialog - The dialog to remove.
java.lang.NullPointerException - If the supplied dialog is null.
public void addEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to add.
java.lang.NullPointerException - If the supplied event handler is
null.
public void removeEventHandler(EventHandler eventHandler)
throws java.lang.NullPointerException
eventHandler - The event handler to remove.
java.lang.NullPointerException - If the supplied event handler is
null.public java.lang.String getDocumentType()
IDocument
getDocumentType in interface IDocument
public void writeWidget(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
Widget
writeWidget in class WidgetoutputHandler - The handler to write this widget to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of this widget fails.protected void writeAttributes(org.xml.sax.helpers.AttributesImpl attributes)
attributes - The attribute set to write to.
java.lang.NullPointerException - If the supplied attribute set is
null.
protected void writeProperties(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The handler to write the properties to.
org.xml.sax.SAXException - If the writing of the properties fails.
java.lang.NullPointerException - If the supplied content handler is
null.
protected void writeVariables(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
protected void writeScripts(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
protected void writeDialogs(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
protected void writeEventHandlers(org.xml.sax.ContentHandler outputHandler)
throws java.lang.NullPointerException,
org.xml.sax.SAXException
outputHandler - The content handler to write to.
java.lang.NullPointerException - If the supplied content handler is
null.
org.xml.sax.SAXException - If the writing of one of the event handlers fails.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||